import { Global, Module } from '@nestjs/common';
import { GlobalService } from './global.service';
import { GlobalController } from './global.controller';

// 全局模块装饰器
@Global() // 全局模块
@Module({
  controllers: [GlobalController],
  providers: [GlobalService],
  exports: [GlobalService]
})
export class GlobalModule { }
